package day04;
import java.util.Scanner;
public class ScanerDemo {
    public static void main(String[] args) {
        /*Scanner scan=new Scanner(System.in);
        double gage=scan.nextDouble();

        Scanner commmand=new Scanner(System.in);
        int can=commmand.nextInt();

        Scanner scanner=new Scanner(System.in);
        int den=scanner.nextInt();

      switch(den){
          case 1:

              case 2:
          default:
      }*/
        Scanner scan=new Scanner(System.in);
        System.out.println("请选择功能：1存款，2取款，3转账，4退出");
        int command=scan.nextInt();
        switch(command){
            case 1:
                System.out.println("存款业务");
                break;
            case 2:
                System.out.println("取款业务");
                break;
            case 3:
                System.out.println("转账业务");
                break;
            case 4:
                System.out.println("退出");
                break;
            default:
                System.out.println("输入错误");

        }
       if(command==1){
           System.out.println("存款业务");
       }else if(command==2){
           System.out.println("取款业务");
       }else if(command==3){
           System.out.println("转账业务");
       }else if(command==4){
           System.out.println("退出");
       } else{
           System.out.println("输入错误");
       }




    }
}
